package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.query.DestinationQuery;
import cn.wolfcode.luowowo.article.query.DestinationThemeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> selectDestByDeep(int deep);

    List<Destination> selectForList(DestinationQuery qo);

    void updateInfo(@Param("id") Long id, @Param("info") String info);

    void changeHotValue(@Param("id") Long id, @Param("hot") int hot);

    Destination selectHotDestByRegionId(Long refId);

    List<Destination> selectByParentId(Long parentId);

    String selectSurveyById(@Param("destId") Long destId);

    List<Destination> selectByCondition(DestinationThemeQuery qo);

    List<Destination> getDestByMonthId(Long id);
}